#ifndef UTILS_H
#define UTILS_H

#define DOWN 0
#define UP 1

typedef unsigned char uint8;
typedef unsigned short int uint16;
typedef unsigned int uint32;
typedef unsigned long long int uint64;

extern uint32 int_pow (int, int);

extern double rand01 ();

extern uint8 get_bit (uint64, uint8);

extern uint64 set_bit (uint64, uint8, uint8);

#endif // UTILS_H
